package com.lex.service;

import com.lex.common.api.CommonResult;
import com.lex.entity.account.AddUserDto;
import com.lex.entity.params.UsersQueryParams;

public interface AccountService {
    //获取所有用户列表，带分页
    CommonResult getUsersListByPage(UsersQueryParams queryParamDto,
                                    Integer page,
                                    Integer pageSize);
    //判断用户名是否重复
    CommonResult isUserNameExist(String userName);
    //添加用户
    CommonResult addUser(AddUserDto addUserDto);
    //删除用户
    CommonResult deleteUser(Long userId);
    //修改用户

    CommonResult updateUser(AddUserDto addUserDto);
    //修改用户密码
    CommonResult updateUserPassword(String passwordOld, String passwordNew);
    //修改用户状态
    CommonResult updateUserStatus(Long userId, Byte status);
}
